package com.le.tester.tip.generateticketno;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * createTime：2022/9/13 16:54
 * description：生成服务单号码的规则
 */
public class GenerateTicketNo {


    public static void main(String[] args) {
        ExecutorService executor = Executors.newFixedThreadPool(20);
        try {
            for (int i = 0; i < 50000; i++) {
                executor.execute(new GenerateTicketNoTask());
            }
        } finally {
            executor.shutdown();
        }

    }

}
